package test

class Girl(var chactor: String, var voice: String) {
    fun smile(){
        println("女孩微笑")
    }
    fun cry(){
        println("女孩哭泣")
    }
}

fun main(args: Array<String>) {
    val girl = Girl("温柔", "甜美")
    println("女孩的声音:${girl.voice}")
    girl.cry()
    girl.smile()
}